←Select platform

AddRange Method

Summary

Adds multiple items to the end of the collection.

Syntax
C#
C++/CLI
Python
public virtual void AddRange( 
   IEnumerable<T> items 
) 
public:  
   virtual void AddRange( 
      IEnumerable<T>^ items 
   ) 
def AddRange(self,items): 

Parameters

items

The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

This method is essentially InsertRange with the index parameter set to Count.

This method raises the CollectionChanged event with the Add action.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.